<template>
  <button @click="dlfile">22222</button>
</template>

<script>
import {request} from '../util/index.js'
export default {
  name:'AxiosDemo',
  methods:{
    dlfile:function() {
      let test = request({
        url:'/download',
        data:{
          "test":111,
          "test1":222
        }
      });
      test.then(resp=>{
        console.log(resp);
      })
    }
  }
}
</script>

<style>

</style>